
<div class="container">
    
    <?php $att = array('class' => 'form-horizontal', 'role' => 'form', 'id' => 'postForm'); echo form_open('', $att);?>
    <div class="col-md-6">
        <div class="row">
            <div class="col-md-12">
              <div class="panel">
               
                <div class="panel-heading">
                  <div class="panel-title"> <img src="<?php echo $baseurl.'public/theme/default/img/add.png'?>" alt="user avatar" width="28" height="28" /> Thêm giờ nghỉ </div>
                </div>
                <div class="panel-body">
                    <?php if(isset($message)):?>
                    <div class="alert alert-danger" id="show-msg">
                        <div class="btn-close"><button type="button" id="close-msg" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>
                        <?php echo $message; ?>
                    </div>
                    <?php endif;?>
                    
                    <div class="form-group">
                      <label for="inputPassword" class="col-lg-2 control-label">Chọn thuyền viên</label>
                      <div class="col-lg-10">
                        <select class="form-control" id="crew-list" name="crew-list">
                          <option value="-1">Chọn thuyền viên</option>
                          <?php echo $select_crew ?>
                        </select>
                      </div>
                    </div>
                    
                    <div class="form-group">
                      <label for="inputStandard" class="col-lg-2 control-label">Ngày, tháng, năm</label>
                      <div class="col-lg-10">
                        <input type="text" id="date-rest" name="date-rest" class="form-control" value="<?php echo $date_rest ?>" placeholder="Nhập ngày nghỉ">
                      </div>
                    </div>
                    
                    <div class="form-group">
                      <label for="inputPassword" class="col-lg-2 control-label">Chọn giờ nghỉ từ</label>
                      <div class="col-lg-10">
                        <select class="form-control" id="start-crest-time" name="start-crest-time">
                          <option value="-1">Giờ bắt đầu</option>
                          <?php echo $select_time_start ?>
                        </select>
                      </div>
                    </div>
                    
                    <div class="form-group">
                      <label for="inputPassword" class="col-lg-2 control-label">Đến: </label>
                      <div class="col-lg-10">
                        <select class="form-control" id="end-crest-time" name="end-crest-time">
                          <option value="-1">Giờ kết thúc</option>
                          <?php echo $select_time_end ?>
                        </select>
                      </div>
                    </div>
                    <div class="form-group">
                      <label for="inputPassword" class="col-lg-2 control-label">Chọn ngoại lệ</label>
                      <div class="col-lg-10">
                        <select class="form-control" id="ect-crest" name="ect-crest">
                          <?php echo $select_exception ?>
                        </select>
                      </div>
                    </div>
                    <div class="form-group">
                      <label for="inputPassword" class="col-lg-2 control-label">Ghi chú</label>
                      <div class="col-lg-10">
                        <textarea class="form-control text-field-alt margin-bottom-lg" rows="2" id="note-crest-time" name="note-crest-time" placeholder="Ghi chú giờ nghỉ"><?php echo $note ?></textarea>
                      </div>
                    </div>
                </div>
              </div>
            </div>
        </div>
    </div>
    <div class="col-md-3-3">
        <div class="row">
            <div class="col-md-12">
                 <div class="panel">
                    <div class="panel-heading">
                      <div class="panel-title"><img src="<?php echo $baseurl.'public/theme/default/img/arrow_right.png'?>" alt="user avatar" width="28" height="28" /> Hành động</div>
                    </div>
                    <div class="panel-body">
                      <div class="form-group">
                          <div class="col-lg-10" style="width: 100%;">
                            <button type="submit" class="btn btn-info btn-gradient btn-sm">Lưu lại</button>
                            <button type="button" class="btn btn-default btn-gradient btn-sm" onclick="window.location='<?php echo $baseurl.'rest.html'?>'">Hủy bỏ</button>
                          </div>
                        </div>
                    </div>  
                 </div>
            </div>
        </div>
    </div>
    </form>
</div>
